package com.weipai.demo.controller;

import com.weipai.demo.service.JiguangPushService;
import com.weipai.demo.util.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 赵项阳
 * @Date: 2019/6/15 17:44
 * @Version 1.0
 */
//极光推送
@RestController
public class JiguangPushController {
    @Autowired
    JiguangPushService jiguangPushService;


    @RequestMapping(value = "/push/pushMessage",method = RequestMethod.POST)
    public Response push(String title,String message){

        return jiguangPushService.
                pushMessage(title,message);


    }
}
